package com.zt.bus.order.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderDetailPassenger {
    private String orderId;
    private String passengerPhone;
    private String passengerName;
    private String onStop;
    private String offStop;
    private List<OrderDate> dates = new ArrayList<>();

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getPassengerPhone() {
        return passengerPhone;
    }

    public void setPassengerPhone(String passengerPhone) {
        this.passengerPhone = passengerPhone;
    }

    public String getPassengerName() {
        return passengerName;
    }

    public void setPassengerName(String passengerName) {
        this.passengerName = passengerName;
    }

    public String getOnStop() {
        return onStop;
    }

    public void setOnStop(String onStop) {
        this.onStop = onStop;
    }

    public String getOffStop() {
        return offStop;
    }

    public void setOffStop(String offStop) {
        this.offStop = offStop;
    }

    public List<OrderDate> getDates() {
        return dates;
    }

    public void setDates(List<OrderDate> dates) {
        this.dates = dates;
    }

    public void addDate(String id, Date date, String status) {
        dates.add(new OrderDate(id, date, status));
    }

    public class OrderDate {
        private String id;
        private Date date;
        private String status;

        public OrderDate(String id, Date date, String status) {
            this.id = id;
            this.date = date;
            this.status = status;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public Date getDate() {
            return date;
        }

        public void setDate(Date date) {
            this.date = date;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }
    }
}
